<%if @objects.empty?%>
<table width="500" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td><%=image_tag "/images/nil.gif"%></td>
		<td class="biggray" valign="center"><strong>对不起，没有找到和<%=@query%>相关的公司</strong></td>
	</tr>
</table>
<%else%>
<% for company in @objects %>
<table width="500" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td width="70" rowspan="4" class="medgray" valign="top">
		<table width="61" height="80">
			<tr>
				<td><%=showpicture(company)%></td>
			</tr>
			<tr>
				<td align="center" class="sma">更新于&nbsp;<%=company.created_time.year%>年</td>
			</tr>
		</table>
		</td>
		<td><strong> <%= link_to h(company.cname),:controller=>"view", :action => 'viewcompany', :id => company.id %>
		</strong></td>
		<td class="meddeepblue" align="right"><strong><%=link_to h(company.incumbents_count) +"个样本",:controller=>"report", :action=>"listcompanyincumbent",:id=>company.id %>
		</strong>&nbsp;&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" class="medblack" valign="top">行业性质：<%=myhighlight(h(company.Industry.cname)+"-"+h(company.Entity.cname),@query_arrays)%></td>
	</tr>
	<tr>
		<td colspan="2" class="medblack" valign="top">公司地址：<%=myhighlight(h(company.address),@query_arrays)%></td>
	</tr>
	<tr>
		<td colspan="2" class="medblack" valign="top" align="right">共有<%=company.reply_times%>&nbsp;条评论&nbsp;&nbsp;</td>
	</tr>
	<tr height="5">
		<td></td>
	</tr>
	<tr>
		<td colspan="3" class="spanline">&nbsp;</td>
	</tr>
</table>
<% end %>
<%end%>
